package com.fjnldx.mes.service.scheduling.alarm.rule.inspector.contrast;

import com.fjnldx.mes.domain.pojo.alarm.enums.TriggerConditionEnum;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * 不等於對比
 */
@Service
public class NotEqualContrast implements AlarmContrast {
    @Override
    public TriggerConditionEnum getCondition() {
        return TriggerConditionEnum.NOT_EQUAL;
    }

    @Override
    public boolean Contrast(String value, String standardValues) {
        return !Objects.equals(value, standardValues);
    }
}
